<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:f="http://java.sun.com/jsf/core">
    <rich:popupPanel id="#{popupCmpId}" autosized="true">
        <f:facet name="header">
           <ui:insert name="header"/>
        </f:facet>
        <f:facet name="controls">
            <h:graphicImage value="#{resource['images/close.png']}"
                            styleClass="hand" onclick="PawnPopup.hide(#{popupCmpId})"/>
        </f:facet>
        <ui:include src="#{includePage}"/>
    </rich:popupPanel>
</ui:composition>